<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:'',
				detectionOrderId:''
			}
		},
		onLoad(option) {
			debugger;
			this.detectionOrderId = option.detectionOrderId
			console.log(option)
			this.detectionOrder()
		},
		onShow() {
			this.detectionOrder()
		},
		methods: {
			link(detectionCarReportId){
				uni.navigateTo({
					url:'/pagesC/testingList/testingList?detectionCarReportId='+detectionCarReportId+'&detectionOrderId='+this.detectionOrderId
				})
			},
			
			detectionOrder(){
				let that = this;
				let data  = {
					token:uni.getStorageSync('token'),
					detectionOrderId:this.detectionOrderId
				}
				API.merDetectionOrderGetAllCarReport(data).then(res=>{
					this.list = res.data
					console.log(res)
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
